package com.team11.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team11.server.pojo.CInformation;
import com.team11.server.pojo.dto.ProjectAttendance;
import com.team11.server.pojo.dto.RespPageBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pjc
 * @since 2021-06-15
 */
public interface CInformationMapper extends BaseMapper<CInformation> {

    /**
     * 获取项目考勤记录表
     * @param page
     * @param projectAttendance
     * @param dates
     */
    IPage<ProjectAttendance> getProjectAttendance(IPage<ProjectAttendance> page,
                                                  @Param("projectAttendance") ProjectAttendance projectAttendance,
                                                  @Param("dates") LocalDate[] dates);
}
